package com.adingxiong.cft.database;

import com.adingxiong.cft.entity.TUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @ClassName EsUserRepository
 * @Description TODO
 * @Author xiongchao
 * @Date 2021/1/14 16:39
 **/
public interface EsUserRepository extends ElasticsearchRepository<TUser,Long> {

    Page<TUser> findByUsernameOrNickName(String username, String nickname ,Pageable pageable);
 }
